<template>
	<view>
		<view style="padding: 0 20upx;">
			<p style="font-size: 50rpx;font-weight: 900;">{{detail.safetyPublicityTitle}}</p>
			<p style="color: #7f7f93;margin-top: 10rpx;">{{detail.setDate}}</p>
		</view>
		<view class="u-content" style="padding: 0 20upx;">
			<u-parse :html="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {},
				content: ''
			}
		},
		onLoad: function(option) {
			
			this.$u.api.publicityinfodetailed({
				id:option.newsNumber
			}).then(res => {
				this.detail=res.rows[0];
				console.log(this.detail);
				this.content = decodeURIComponent(this.detail.safetyPublicityContent);
			})
			
		},
	}
</script>

<style lang="scss" scoped>
	.u-content {
		margin-top: 20rpx;
		color: $u-content-color;
		font-size: 32rpx;
		line-height: 1.8;

		// 标签形式无效
		p {
			color: $u-tips-color;
		}
	}
</style>
